// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick' // 引入移动端click事件延迟300ms的问题
import VueAwesomeSwiper from 'vue-awesome-swiper' // Vue轮播图工具
import store from '@/store/index' // 引入项目中的vuex
import 'babel-polyfill'
import '@styles/reset.css' // 引入全局CSS文件
import '@styles/border.css' // 引入移动端 1px border 的兼容问题
import '@styles/iconfont.css'
// require styles
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body) // 使用fastclick官方提供的方法，将fastclick绑定在body上
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store, // 配置vuex
  components: { App },
  template: '<App/>'
})
